package ru.paswd.marketprice.rest.app.mappers;

import org.mapstruct.Mapper;
import ru.paswd.marketprice.rest.api.dto.Product;

@Mapper(componentModel = "spring")
public interface ProductMapper extends
        FromDtoMapper<Product, ru.paswd.marketprice.rest.app.entity.Product> {

    Product toDto(ru.paswd.marketprice.rest.app.entity.Product product,
                  Integer priceMin, Integer priceMax);
}
